<head>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/CSS/Competition/middle.css">
	<script type="text/javascript" src="__PUBLIC__/JS/jquery-1.7.2.min.js"></script>
	<script type="text/javascript">
	function apply_for_match(){	
	var maildata = {
		competition_id : <{$competition.competition_id}>,
		user_id : 100000026,
		item : $('#item_sel').val()
	};
	$.ajax({
		url: '__APP__/Home/Competition/apply_for_competition',
		data: maildata,
		type: 'POST',
		dataType: 'json',
		success:function(obj){
			// var res = JSON.parse(obj);
			if(obj.ans==11) {
               alert("申请成功！");
			} else if(obj.ans==2){
               alert("报名人数已满！");
			}else {
				alert("申请失败！");
			}
		}
	});
}
</script>
</head>

<div class="wrap_full main_layout">
	<div class="blank"></div>
	<div class="site_nav">
				<a href="__APP__/Home/Index/index" title="首页">首页</a>
				&nbsp;&nbsp;»&nbsp;&nbsp;<a href="__APP__/Home/Competition/com_home_list" title="比赛">比赛</a>
				&nbsp;&nbsp;»&nbsp;&nbsp;<a href="__APP__/Home/Competition/competition_introduce/competition_id/<{$competition.competition_id}>" title="<{$competition.competition_name}>"><{$competition.competition_name}></a>
				<!-- <input type="hidden" id="hinput" name="hinput" value='<{$competition.competition_id}>'/> -->				
			</div>	
	
</div>

<div class="wrap_full main_layout clearfix">

			<div class="wrap_m2 f_l">			
			<div class="event_box">
				<div class="title">[<{$competition.competition_gymnasium}>]<{$competition.competition_name}></div>
				<p class="details">
									</p>
				<div class="event_info_box">
					<div class="event_img f_l">
						<div class="img">
							<img data-src="<{$competition.competition_picture}>" lazy="true" />
						</div>
					</div>
					<div class="event_intro f_r event_ico">
						
												<dl>
							<dt><i class="iconfont">&#xe608;</i></dt>
							<dd>活动名额 <i><{$competition.competition_contain_number}></i> 人, 报名消耗  <i>20</i> 积分</dd>
						</dl>
												<dl>
							<dt><i class="iconfont">&#xe617;</i></dt>
							<dd>报名数 <i><{$competition.competition_regist_number}></i> 人</dd>
						</dl>
						
												
																		<dl>
							<dt><i class="iconfont">&#xe615;</i></dt>
							<dd>活动地点： &nbsp;<{$competition.competition_gymnasium }></dd>
						</dl>
	
												<div class="blank"></div>
												<div>报名项目： 
                                                     <select name="item_sel" id="item_sel">
                                      <option value="1">男单</option>
                                      <option value="2">女单</option>
                                      <option value="3">男双</option>
                                      <option value="4">女双</option>
                                      <option value="5">混双</option>
                                      <option value="6">老年组</option>

                                      <!-- <option value="3">五项团体赛</option> -->
                              </select>
												</div>
												<div class="btn_row">
										
														<button class="ui-button" rel="orange" id="submit_btn" type="button" onclick="apply_for_match()">我要报名</button>
														&nbsp;
														<button class="ui-button" rel="blue" type="button" id="collect_btn">加入收藏</button>
						</div>
						<div class="blank"></div>
						<!-- JiaThis Button BEGIN -->
						<div class="jiathis_style">
							<span class="jiathis_txt">分享到：</span>
							<a class="jiathis_button_icons_1"></a>
							<a class="jiathis_button_icons_2"></a>
							<a class="jiathis_button_icons_3"></a>
							<a class="jiathis_button_icons_4"></a>
							<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
							<a class="jiathis_counter_style"></a>
						</div>
						<script type="text/javascript">
							 var jiathis_config = {
							 	title:"羽乐年度赛",
							    url:"http://www.my3w.com/o2o/index.php?ctl=event&act=6"
							    
							};
						</script>
						<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
						
						<!-- JiaThis Button END -->
											</div>
				</div>
			</div>
			<!--详情导航-->
			<div class="show-nav" id="rel_nav">
			<!--{start: 详情导航 -->
			<ul>
								<li rel="n0">活动地点</li>
																<li rel="n2">消费评价</li>
							</ul>
			<!--}end: 详情导航 -->
			</div>
			<div style="display:none;" class="fix-nav wrap_m2">
				<!--{start: 浮动导航 -->
				<div class="show-nav">
					<!--{start: 详情导航 -->
					<ul class="f_l">
												<li rel="n0">活动地点</li>
																								<li rel="n2">消费评价</li>
											</ul>
										<button class="ui-button flow_btn" id="flow_btn" rel="white">立即报名</button>
										<!--}end: 详情导航 -->
				</div>
				<!--}end: 浮动导航 -->
			</div>
			<!--end 详情导航-->
			<div class="show-content">
								<div rel="n0" class="content_box">
					<div class="box_title nomargin">活动地点</div>
					<div class="box_content nopadding">
						<div id="event_map" name="羽乐年度赛" address="中山一路号" xpoint="" ypoint=""></div>
					</div>
				</div>
																<div rel="n2" class="content_box">
					<div class="box_title">
						<div class="box_title_text">活动评价</div>
						<div class="box_title_more">我参与过该活动，<a href="/o2o/index.php?ctl=review&event_id=6" target="_blank">我要评价</a></div>
					</div>
					<div class="box_content">
						<div id="review_list" event_id="6">
						</div>
					</div>
				</div>
								<div class="content_box"></div>
			</div>
		</div><!--end wrap_m2-->
		<div class="wrap_s2 f_r">
						<div class="side_deal_box">
			<div class="title_row">热门活动</div>
			<div class="content_row">
				<ul class="side_deal_list">
					
										<li>
						<a href="/o2o/index.php?ctl=event&act=2" class="deal_img"><img data-src="http://www.my3w.com/o2o/public/attachment/201509/06/12/55ebba8516cc0_198x134.jpg" lazy="true" /></a>
						<a href="/o2o/index.php?ctl=event&act=2"  class="deal_title">弘扬体育会羽球免费培训</a>
						<div class="deal_info">
							<span class="deal_price f_l">
							
							</span>
							<span class="sale_count f_r">
								<i class="iconfont">&#xe617;</i>&nbsp;报名量:1							</span>
						</div>
					</li>
										<li>
						<a href="/o2o/index.php?ctl=event&act=5" class="deal_img"><img data-src="http://www.my3w.com/o2o/public/attachment/201509/07/10/2828466714c6cf4b06db56f51acfd2a534_198x134.jpg" lazy="true" /></a>
						<a href="/o2o/index.php?ctl=event&act=5"  class="deal_title">羽乐无限周末赛</a>
						<div class="deal_info">
							<span class="deal_price f_l">
							
							</span>
							<span class="sale_count f_r">
								<i class="iconfont">&#xe617;</i>&nbsp;报名量:1							</span>
						</div>
					</li>
										<li>
						<a href="/o2o/index.php?ctl=event&act=6" class="deal_img"><img data-src="http://www.my3w.com/o2o/public/attachment/201509/07/10/d819197cbc275bc0d9304d598a66ea6f12_198x134.jpg" lazy="true" /></a>
						<a href="/o2o/index.php?ctl=event&act=6"  class="deal_title">羽乐年度赛</a>
						<div class="deal_info">
							<span class="deal_price f_l">
							
							</span>
							<span class="sale_count f_r">
								<i class="iconfont">&#xe617;</i>&nbsp;报名量:1							</span>
						</div>
					</li>
										
				</ul>
			</div>
			</div>
			<div class="blank"></div>
						
						<div class="side_deal_box">
			<div class="title_row">
				<span>浏览历史</span>
				<a href="javascript:void(0);" class="clear_history" type="event">清空</a>
			</div>
			<div class="content_row">
				<ul class="side_deal_list">
										<li>
						<a href="/o2o/index.php?ctl=event&act=6" class="deal_img"><img data-src="http://www.my3w.com/o2o/public/attachment/201509/07/10/d819197cbc275bc0d9304d598a66ea6f12_198x134.jpg" lazy="true" /></a>
						<a href="/o2o/index.php?ctl=event&act=6"  class="deal_title">羽乐年度赛</a>
						<div class="deal_info">
							<span class="deal_price f_l">
							
							</span>
							<span class="sale_count f_r">
								<i class="iconfont">&#xe617;</i>&nbsp;报名量:1							</span>
						</div>
					</li>
										
				</ul>
			</div>
			</div>
					</div>


</div>

